jutil -convert products.ext out-jisam -d -s |
jutil -rebuild products –efd=xml |
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://tempuri.org/PurchaseOrderSchema.xsd" targetNamespace="http://tempuri.org/PurchaseOrderSchema.xsd" elementFormDefault="qualified"> <xsd:element name="PurchaseOrder" type="tns:PurchaseOrderType"/> <xsd:complexType name="PurchaseOrderType"> <xsd:sequence> <xsd:element name="ShipTo" type="tns:USAddress" maxOccurs="2"/> </xsd:sequence> <xsd:attribute name="OrderDate" type="xsd:date"/> </xsd:complexType> <xsd:complexType name="USAddress"> <xsd:sequence> <xsd:element name="name" type="xsd:string"/> <xsd:element name="state" type="xsd:string"/> <xsd:element name="zip" type="xsd:integer"/> <xsd:element name="priority"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value="hign"/> <xsd:enumeration value="normal"/> <xsd:enumeration value="low"/> </xsd:restriction> </xsd:simpleType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:schema> |
stream2wrk xsd order.xsd -o order1.wrk –p order- -d |
01 order-PurchaseOrder identified by 'PurchaseOrder' namespace 'http://tempuri.org/PurchaseOrderSchema.xsd'. 03 order-OrderDate-attr identified by 'OrderDate' is attribute pic x any length. 03 order-ShipTo identified by 'ShipTo' occurs 2. 05 order-name identified by 'name'. 07 order-name-data pic x any length. 05 order-state identified by 'state'. 07 order-state-data pic x any length. 05 order-zip identified by 'zip'. 07 order-zip-data pic s9(18). 05 order-priority identified by 'priority'. 07 order-priority-data pic x any length. |
stream2wrk xsd order.xsd -o order2.wrk –p order- –d -e -c -iu -l=80 -sd -var -se -88 |
01 order-PurchaseOrder identified by 'PurchaseOrder' namespace 'http://tempuri.org/PurchaseOrderSchema.xsd' count in order-PurchaseOrder-count. 03 order-OrderDate-attr identified by 'OrderDate' is attribute pic x(80) count in order-OrderDate-attr-count. 03 order-ShipTo identified by 'ShipTo' occurs 2 count in order-ShipTo-count. 05 order-name identified by 'name' count in order-name-count. 07 order-name-var count in order-name-var-count pic x(80). 05 order-state identified by 'state' count in order-state-count. 07 order-state-var count in order-state-var-count pic x(80). 05 order-zip identified by 'zip' count in order-zip-count. 07 order-zip-var count in order-zip-var-count pic s9(18). 05 order-priority identified by 'priority' count in order-priority-count. 88 order-priority-88-0 value 'hign'. 88 order-priority-88-1 value 'normal'. 88 order-priority-88-2 value 'low'. 07 order-priority-var count in order-priority-var-count pic x(80). |